package com.huabo.file.ftp;

import org.apache.commons.net.ftp.FTP;

/**
 * Created by Jackie Liu on 2017/7/10.
 */
public class FTPClientConfigure {

    private String host;
    private int port = 21;
    private String userName;
    private String password;
    private boolean passiveMode = true;
    private String encoding = "UTF-8";
    private int clientTimeout = 6000;//单位毫秒
    //private int threadNum;
    private int transferFileType = FTP.BINARY_FILE_TYPE;
    //private boolean renameUploaded;
    //private int retryTimes = 2;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public boolean getPassiveMode() {
        return passiveMode;
    }

    public void setPassiveMode(boolean passiveMode) {
        this.passiveMode = passiveMode;
    }

    public String getEncoding() {
        return encoding;
    }

    public void setEncoding(String encoding) {
        this.encoding = encoding;
    }

    public int getTransferFileType() {
        return transferFileType;
    }

    public void setTransferFileType(int transferFileType) {
        this.transferFileType = transferFileType;
    }

    public int getClientTimeout() {
        return clientTimeout;
    }

    public void setClientTimeout(int clientTimeout) {
        this.clientTimeout = clientTimeout;
    }
}
